package com.server.mapper;

import com.server.Example.SessionsExample;
import com.server.entity.Sessions;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Sessions mapper.
 */
public interface SessionsMapper {
    /**
     * Count by example long.
     *
     * @param example the example
     * @return the long
     */
    long countByExample(SessionsExample example);

    /**
     * Delete by example int.
     *
     * @param example the example
     * @return the int
     */
    int deleteByExample(SessionsExample example);

    /**
     * Delete by primary key int.
     *
     * @param sessionsId the sessions id
     * @return the int
     */
    int deleteByPrimaryKey(Integer sessionsId);

    /**
     * Insert int.
     *
     * @param record the record
     * @return the int
     */
    int insert(Sessions record);

    /**
     * Insert selective int.
     *
     * @param record the record
     * @return the int
     */
    int insertSelective(Sessions record);

    /**
     * Select by example list.
     *
     * @param example the example
     * @return the list
     */
    List<Sessions> selectByExample(SessionsExample example);

    /**
     * Select by primary key sessions.
     *
     * @param sessionsId the sessions id
     * @return the sessions
     */
    Sessions selectByPrimaryKey(Integer sessionsId);

    /**
     * Update by example selective int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExampleSelective(@Param("record") Sessions record, @Param("example") SessionsExample example);

    /**
     * Update by example int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExample(@Param("record") Sessions record, @Param("example") SessionsExample example);

    /**
     * Update by primary key selective int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKeySelective(Sessions record);

    /**
     * Update by primary key int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKey(Sessions record);
}